﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Equations
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Linear Equation");
            Console.WriteLine("ax + b = 0");

            // Parse from text to integer
            // short comment
            /* 
            long comment
            string aString = Console.ReadLine();
            int a = int.Parse(aString);
             */

            Console.Write("a = ");
            float a = float.Parse(Console.ReadLine());

            Console.Write("b = ");
            float b = float.Parse(Console.ReadLine());

            float x = -b / a;

            Console.WriteLine("x = " + x);

            Console.ReadKey();
        }
    }
}
